//
// Created by wze-zero on 2024/7/16 016.
//
#include <iostream>

using namespace std;

class Cube {
public:
    int length, width, height;
public:
    void setLength(int l) {
        length = l;
    }

    void setWidth(int w) {
        width = w;
    }

    void setHeight(int h) {
        height = h;
    }

    int getLength() const {
        return length;
    }

    int getWidth() const {
        return width;
    }

    int getHeight() const {
        return height;
    }

    int getArea() const {
        return length * width * 2 + length * height * 2 + width * height * 2;
    }

    int getVolume() const {
        return length * width * height;
    }
};

int main() {
    int length, width, height;
    cin >> length;
    cin >> width;
    cin >> height;
    Cube c;
    c.setLength(length);
    c.setWidth(width);
    c.setHeight(height);
    cout << c.getLength() << " "
         << c.getWidth() << " "
         << c.getHeight() << " "
         << c.getArea() << " "
         << c.getVolume() << endl;
    return 0;
}